import request from '@/utils/request'

// 列表
export function ageBulletinList(query) {
    return request({
        url: '/framework/bulletin/list',
        method: 'get',
        params: query
    })
}

// 新增
export function addBulletin(data) {
    return request({
        url: '/framework/bulletin',
        method: 'post',
        data: data
    })
}

// 修改
export function updateBulletin(data) {
    return request({
        url: '/framework/bulletin',
        method: 'put',
        data: data
    })
}

// 删除
export function delBulletin(bulletinIds) {
    return request({
        url: '/framework/bulletin/' + bulletinIds,
        method: 'delete'
    })
}



// 公告类型 start
// 列表
export function bulletinTypeList(query) {
    return request({
        url: '/framework/bulletinType/list',
        method: 'get',
        params: query
    })
}

// 新增
export function addBulletinType(data) {
    return request({
        url: '/framework/bulletinType',
        method: 'post',
        data: data
    })
}

// 修改
export function updateBulletinType(data) {
    return request({
        url: '/framework/bulletinType',
        method: 'put',
        data: data
    })
}

// 删除
export function delBulletinType(bulletinTypeIds) {
    return request({
        url: '/framework/bulletinType/' + bulletinTypeIds,
        method: 'delete'
    })
}